import fetch from '../utils/fetch'



export function getQuestionList(type,start) {
  return fetch({
    url: '/get/question/by/type',
    method: 'get',
    params:{
        start,
        type
    }
  })
}


export function deleteQuestion(id) {
  return fetch({
    url: '/delete/question',
    method: 'get',
    params:{
        id

    }
  })
}




export function addQuestion(form,dynamicTags) {
  return fetch({
    url: '/add/question',
    method: 'post',
    data:{
        dynamicTags,
        form
    }
  })
}
